Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: replace docker pull push with skopeo #178

Merged
merged 9 commits into from
Nov 13, 2024
Merged

Conversation

jdongo-aneo
Copy link
Contributor

@jdongo-aneo jdongo-aneo commented Oct 22, 2024

There are many calls for Docker pull and push to populate an internal ECR on AWS.
We suggest using Scope, a client that helps avoid this approach and simplifies the process by cloning images from a source to a target.

@jdongo-aneo jdongo-aneo force-pushed the jd/scopeo branch 10 times, most recently from 8fb229b to b4d6cbe Compare October 24, 2024 06:59
@jdongo-aneo jdongo-aneo changed the title fix: replace docker pull push with scopeo feat: replace docker pull push with scopeo Oct 24, 2024
@jdongo-aneo jdongo-aneo marked this pull request as ready for review October 24, 2024 07:14
@jdongo-aneo jdongo-aneo force-pushed the jd/scopeo branch 2 times, most recently from 629de02 to d7bdb54 Compare October 24, 2024 09:38
Copy link
Contributor

@tschneider-aneo tschneider-aneo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but I think you should explicit some information about this PR, for example using this PR template.

BTW, isn't this PR rather a refactor than a feat ?

@jdongo-aneo jdongo-aneo force-pushed the jd/scopeo branch 2 times, most recently from ffcc063 to 4cc93f7 Compare October 29, 2024 10:45
@jdongo-aneo jdongo-aneo changed the title feat: replace docker pull push with scopeo refactor: replace docker pull push with scopeo Oct 29, 2024
container-registry/aws/ecr/main.tf Outdated Show resolved Hide resolved
container-registry/aws/ecr/main.tf Outdated Show resolved Hide resolved
@lemaitre-aneo
Copy link
Contributor

If you need to ensure an image is actually uploaded before being used, you should add a dependency on skopeo2_copy on the output

@jdongo-aneo jdongo-aneo force-pushed the jd/scopeo branch 4 times, most recently from 37530f6 to 5cbe4d6 Compare November 7, 2024 07:31
@lemaitre-aneo lemaitre-aneo changed the title refactor: replace docker pull push with scopeo refactor: replace docker pull push with skopeo Nov 7, 2024
container-registry/aws/ecr/main.tf Outdated Show resolved Hide resolved
@@ -3,7 +3,6 @@ variable "aws_profile" {
description = "AWS Profile used to login and push container images on ECR"
type = string
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can revert this

container-registry/aws/ecr/versions.tf Show resolved Hide resolved
@jdongo-aneo jdongo-aneo force-pushed the jd/scopeo branch 3 times, most recently from e4a4fc1 to b83d6e0 Compare November 13, 2024 15:21
@lemaitre-aneo lemaitre-aneo merged commit 147539d into main Nov 13, 2024
4 checks passed
@lemaitre-aneo lemaitre-aneo deleted the jd/scopeo branch November 13, 2024 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants